package com.southminority.ethnic.controller.coures.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 课程资料响应VO
 * 
 * @author SouthMinority
 */
@Data
@Schema(description = "课程资料响应")
public class CourseMaterialVo {

    @Schema(description = "资料ID")
    private Long id;

    @Schema(description = "课程ID")
    private Long courseId;

    @Schema(description = "资料文件名")
    private String materialName;

    @Schema(description = "资料下载地址")
    private String downloadUrl;

    @Schema(description = "资料下载数量")
    private Integer downloadCount;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
} 